package command;

import org.springframework.web.multipart.commons.CommonsMultipartFile;

import domain.Image;
import domain.Profile;
import domain.User;

public class ProfilePictureForm {
	
	private CommonsMultipartFile photo = null;
		
	public ProfilePictureForm() {
		
	}
	
	public ProfilePictureForm (User user){
		//
	}
	
	public void update(User user){
		Profile p = user.getProfile();
		p.setPhoto(new Image(photo.getBytes()));
	}

	public CommonsMultipartFile getPhoto() {
		return photo;
	}

	public void setPhoto(CommonsMultipartFile photo) {
		this.photo = photo;
	}
	
	
}
